package com.ztjava.article.validator;

import com.jfinal.core.Controller;
import com.ztjava.core.Constant;
import com.ztjava.core.base.BaseValidator;

public class AddCommentValidator extends BaseValidator {

	@Override
	protected void validate(Controller c) {
		validateRequired("content_id", Constant.MESSAGE, "参数不合法！");
		validateRequired("content", Constant.MESSAGE, "请输入评论内容！");
		validateString("content", 3, 250, Constant.MESSAGE, "请输入3-250个字符！");
	}

}
